package com.yanqu.road.entity.log.maidian.impl;

import com.yanqu.road.entity.log.LogGoldTokenBuy;
import com.yanqu.road.entity.log.maidian.BaseDataAttributeCustomGet;
import com.yanqu.road.utils.string.StringUtils;

public class TokenBuyMoneyPrice extends BaseDataAttributeCustomGet<LogGoldTokenBuy> {

    @Override
    public void get(LogGoldTokenBuy logGoldTokenBuy, String attributeName) {
        if(StringUtils.isNullOrEmpty(logGoldTokenBuy.getMoneyPrice())){
            return;
        }
        logGoldTokenBuy.build(attributeName, Integer.parseInt(logGoldTokenBuy.getMoneyPrice()));
    }
}
